.class final Lcn/cheln/explorer/ds/database/a/c;
.super Ljava/lang/Thread;


# instance fields
.field private synthetic a:[Ljava/io/File;

.field private synthetic b:Lcom/direction/hold/ui/CommonActivity;

.field private synthetic c:Lcn/cheln/explorer/beans/FileInfo;

.field private synthetic d:Lcn/cheln/explorer/beans/FileInfo;


# direct methods
.method constructor <init>([Ljava/io/File;Lcom/direction/hold/ui/CommonActivity;Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;)V
    .locals 0

    iput-object p1, p0, Lcn/cheln/explorer/ds/database/a/c;->a:[Ljava/io/File;

    iput-object p2, p0, Lcn/cheln/explorer/ds/database/a/c;->b:Lcom/direction/hold/ui/CommonActivity;

    iput-object p3, p0, Lcn/cheln/explorer/ds/database/a/c;->c:Lcn/cheln/explorer/beans/FileInfo;

    iput-object p4, p0, Lcn/cheln/explorer/ds/database/a/c;->d:Lcn/cheln/explorer/beans/FileInfo;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 9

    const/4 v8, 0x1

    invoke-super {p0}, Ljava/lang/Thread;->run()V

    iget-object v0, p0, Lcn/cheln/explorer/ds/database/a/c;->a:[Ljava/io/File;

    array-length v1, v0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    aget-object v3, v0, v2

    new-instance v4, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v5, p0, Lcn/cheln/explorer/ds/database/a/c;->b:Lcom/direction/hold/ui/CommonActivity;

    invoke-direct {v4, v3, v5}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    new-instance v5, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcn/cheln/explorer/ds/database/a/c;->c:Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v7}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "/"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v5, v3}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcn/cheln/explorer/ds/database/a/c;->b:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v4, v5, v3, v8}, Lcn/cheln/explorer/ds/database/a/a;->a(Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Lcom/direction/hold/ui/CommonActivity;Z)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcn/cheln/explorer/ds/database/a/c;->d:Lcn/cheln/explorer/beans/FileInfo;

    iget-object v1, p0, Lcn/cheln/explorer/ds/database/a/c;->c:Lcn/cheln/explorer/beans/FileInfo;

    iget-object v2, p0, Lcn/cheln/explorer/ds/database/a/c;->b:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v0, v1, v2, v8}, Lcn/cheln/explorer/ds/database/a/a;->b(Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Lcom/direction/hold/ui/CommonActivity;Z)V

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    iget-object v1, p0, Lcn/cheln/explorer/ds/database/a/c;->d:Lcn/cheln/explorer/beans/FileInfo;

    iput-object v1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    const/16 v1, 0x12

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcn/cheln/explorer/ds/database/a/c;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, v1, Lcom/direction/hold/ui/CommonActivity;->i:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method
